package cn.tedu.bird;

import java.awt.Graphics;
import java.util.Random;

public class Fire extends FlyingObject{

	public Fire() {
		this.width=60;
		this.height=50;
		this.x=0;//
		Random ran=new Random();
		this.y=ran.nextInt(Config.FRAME_HEIGHT-this.height);
	}
	
	@Override
	public void paintSelf(Graphics g) {
		g.drawImage(fire_img, x, y,width,height, null);
	}

	@Override
	public void move() {
		this.x += 10;
	}

}
